<?php $field = $this->field; ?>
<?php if (isset($this->errors[$field])):?>
    <?php $field_errors = $this->errors[$field]; ?>
    <?php foreach ($field_errors as $name_error): ?>
        <label for='<?php echo $field ?>' class='error'>
            <?php echo $name_error ?>
        </label>
    <?php endforeach; ?>
<?php endif; ?>